package com.duyutian.zhanglong.p32javaIo;


import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * @Author : duyutian
 * @Date : 2019/11/26 13:28
 * @Version 1.0
 */
public class JavaIoTest {
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream(new File("E:\\study\\netty-study\\src\\duyutian.txt"));
        byte[] bytes = new byte[1024];
        while (fileInputStream.read(bytes, 0, bytes.length)!=-1){
            String string = new String(bytes);
            System.out.println(string);
        }
    }
}
